how to find the horizontal and vertical compressions